﻿<ul class="nav sidebar-menu">
    @foreach($menus as $v)
        <li>
            <a href="javascript:;" data="{{$v['url']}}" @if(count($v['child'])) class="menu-dropdown" @endif>
                @if($v['icon']) <i class="{{$v['icon']}}"></i> @endif
                <span class="menu-text"> {{$v['title']}} </span>
                @if(count($v['child'])) <i class="menu-expand"></i> @endif
            </a>
            @if(count($v['child']))
                <ul class="submenu">
                    @foreach($v['child'] as $c)
                        <li>
                            <a href="javascript:;" data="{{$c['url']}}" @if(count($c['child'])) class="menu-dropdown" @endif>
                                <span class="menu-text">{{$c['title']}}</span>
                                @if(count($c['child'])) <i class="menu-expand"></i> @endif
                            </a>
                            @if(count($c['child']))
                            <ul class="submenu">
                                @foreach($c['child'] as $n)
                                <li>
                                    <a href="javascript:;" data="{{$n['url']}}">
                                        @if($n['icon']) <i class="{{$n['icon']}}"></i> @endif
                                        <span class="menu-text">{{$n['title']}}</span>
                                    </a>
                                </li>
                                @endforeach
                            </ul>
                            @endif
                        </li>
                    @endforeach
                </ul>
            @endif
        </li>
    @endforeach
</ul>